<{include file="search_header.tpl"}>
<div class="mycontent">
	<div class="searcharea">
    	<div class="searchh">
            <div class="slogo">
            <a href="/">虫虫书吧</a>
            </div>
        	<div class="ssinput">
            	<div class="ssinput1">
            	<div class="searchin">
                	<input type="text" value='<{$keyword}>' class="sousuo" id='keytext' onkeydown='doSearch()'>
                </div>
            	<a class="searchbt" href="javascript:void(0)" id='searchBook'>搜索</a>
                </div>
            </div>
            <div class="sst">

            </div>
		</div>
        <div class="searchsult">
        	<div class="searchtype">   
            	<script type="text/javascript"><!--
google_ad_client = "ca-pub-1247895241047138";
/* 虫虫_搜索 */
google_ad_slot = "3247685436";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>            
            </div>
            
            <div class="searchlist">
            <span class="searchcount">共找到<b style="color:#C00;padding:0 3px;"><{$data->totalrecord}></b>本图书</span>
            <ul class="searchul">

            <{section loop=$data->recordlist name="ls"}>
            <li>
                <a href="/book/<{$data->recordlist[ls].book_id}>.html">《<{$data->recordlist[ls].book_name}>》</a>
                <span class="sslaf">作者:<{$data->recordlist[ls].author}>
                <!--大小:<{$data->recordlist[ls].book_size/1024|string_format:'%.2f'}>KB--></span>
                <p><{$data->recordlist[ls].book_desn|truncate:80:"...":flase}></p>
            </li>
            <{sectionelse}>
                没有搜到相应图书
            <{/section}>
            </ul>
            
            <div class="fanye"><{$data->pagebar}></div>
            <div class="dreamfour"><script type="text/javascript">/*468*60，创建于2010-7-8*/ var cpro_id = 'u98809';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script></div>       
            </div>
            
            <div class="searchother">
            	     <div class="dreamtwo"><script type="text/javascript">/*200*200，创建于2010-6-12*/ var cpro_id = 'u56483';</script><script src="http://cpro.baidu.com/cpro/ui/c.js" type="text/javascript"></script></div>         
            </div>
        </div> 
	</div>  
</div>
<script>
function doSearch(){
	if (event.keyCode == 13){ search();	}
}
function search(){
	var url = '/book/search/'+$('#keytext').val();
    var pageno = 1;
    url = encodeURI(url+'_'+pageno);
    url = encodeURI(url);
    window.location.href=url;
}
$(function(){
    $('#searchBook').click(function(){
        search();
    });
    $('.fanye a').click(function(){
        var pageno = $(this).attr('pageno');
        var url = '/book/search/'+$('#keytext').val();
        url = encodeURI(url+'_'+pageno);
        url = encodeURI(url);
        window.location.href=url;
    });
});
</script>
<{include file="footer.tpl"}>
